;
var db = require("../../javascript/mysql");
var mysql = new db.mysqlClient("accident");
function genProductInfo() {
    plan = {
        "planA": {
            "year": "18-70",
            "days": "1y",
            "people_count": "1",
            "airplane_death": "400000",
            "train_death": "300000",
            "ship_death": "150000",
            "taxi_death": "150000",
            "myselfDriver": "50000",
            "accident_medical": "50000",
            "price": "100.00"
        },
        "planB": {
            "year": "18-70",
            "days": "1y",
            "people_count": "1",
            "airplane_death": "800000",
            "train_death": "400000",
            "ship_death": "300000",
            "taxi_death": "200000",
            "myselfDriver": "200000",
            "accident_medical": "10000",
            "price": "248.00"

        },
        "planC": {
            "year": "18-70",
            "days": "1y",
            "people_count": "1",
            "airplane_death": "1000000",
            "train_death": "400000",
            "ship_death": "300000",
            "taxi_death": "200000",
            "myselfDriver": "300000",
            "accident_medical": "20000",
            "price": "360.00"
        }

    }
    for (k in plan) {
        data = plan[k];
        data.name = "出行无忧-京东安联综合交通意外保险"
        data.company = "京东安联"
        mysql.insertData( data );

    }
    mysql.close();


}
